package edu.whu.demo.job;


import edu.whu.demo.crawler.task.DoTask;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class CrawlerJob extends QuartzJobBean {
    @Autowired
    DoTask doTask;

    protected void executeInternal(JobExecutionContext jobExecutionContext){
        doTask.activityCrawler();
        System.out.println("执行爬虫任务");
    }
}
